<template>
  <div class="container">
    <div class="top">
      <div class="lunbo">
        <el-carousel :interval="5000" arrow="always">
          <el-carousel-item v-for="item in 4" :key="item">
            <img src="@/assets/images/detailImg.png" alt="" />
          </el-carousel-item>
        </el-carousel>
      </div>
      <div class="right">
        <div class="title">活动精选</div>
        <img src="@/assets/images/activeImg.png" alt="" />
        <div class="title1">仙居3日2晚研学活动</div>
        <div class="info">
          <div class="time">时间:2025.5.6</div>
          <div class="btn">活动详情</div>
        </div>
      </div>
    </div>
    <!-- <div class="serch"></div> -->
    <div class="list">
      <div class="type">
        <div class="title">劳动实践</div>
        <div @click="handleList" class="btn">查看更多</div>
      </div>
      <div v-for="item in 3" :key="item" class="list-item">
        <div class="activity-illustration">
          <img src="@/assets/images/activeImg.png" alt="全球合作插图" />
          <span>线上活动</span>
        </div>
        <div class="title">农场劳动实践</div>
        <div class="info">
          一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应...
        </div>
        <div class="bm">
          <div class="btn">我要报名</div>
          <el-tag type="primary">进行中</el-tag>
        </div>
      </div>
    </div>

    <div class="list bg2 type2">
      <div class="type">
        <div class="title">学生竞赛</div>
        <div @click="handleList" class="btn">查看更多</div>
      </div>
      <div v-for="item in 3" :key="item" class="list-item">
        <div class="activity-illustration">
          <img src="@/assets/images/activeImg.png" alt="全球合作插图" />
          <span>线上活动</span>
        </div>
        <div class="title">农场劳动实践</div>
        <div class="info">
          一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应...
        </div>
        <div class="bm">
          <div class="btn">我要报名</div>
          <el-tag type="primary">进行中</el-tag>
        </div>
      </div>
    </div>

    <div class="list bg3">
      <div class="type">
        <div class="title">主题宣传</div>
        <div @click="handleList" class="btn">查看更多</div>
      </div>
      <div v-for="item in 3" :key="item" class="list-item">
        <div class="activity-illustration">
          <img src="@/assets/images/activeImg.png" alt="全球合作插图" />
          <span>线上活动</span>
        </div>
        <div class="title">农场劳动实践</div>
        <div class="info">
          一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应...
        </div>
        <div class="bm">
          <div class="btn">我要报名</div>
          <el-tag type="primary">进行中</el-tag>
        </div>
      </div>
    </div>
    <div class="list bg4 type2">
      <div class="type">
        <div class="title">研讨讲座</div>
        <div @click="handleList" class="btn">查看更多</div>
      </div>
      <div v-for="item in 3" :key="item" class="list-item">
        <div class="activity-illustration">
          <img src="@/assets/images/activeImg.png" alt="全球合作插图" />
          <span>线上活动</span>
        </div>
        <div class="title">农场劳动实践</div>
        <div class="info">
          一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应对考试焦虑的办法一起来研究应...
        </div>
        <div class="bm">
          <div class="btn">我要报名</div>
          <el-tag type="primary">进行中</el-tag>
        </div>
      </div>
    </div>
    <!-- <img @click="handleList" src="@/assets/images/active.png" alt="" /> -->
  </div>
</template>

<script setup>
import { Search } from "@element-plus/icons-vue";
import { ref, reactive } from "vue";
import { useRouter } from "vue-router";
// import ActiveItem from "./activeItem.vue";
const router = useRouter();
const input3 = ref("");
const value2 = ref([new Date(), new Date()]);
const pageable = reactive({
  currentPage: 1,
  pageSize: 10,
  total: 10
});
const selectedFilters = reactive({
  type: "",
  signup: "",
  organizer: "",
  stage: ""
});

function handleList() {
  router.push("/activeList/index");
}
</script>
<style>
.el-carousel__container {
  height: 411px;
}
</style>
<style lang="scss" scoped>
.container {
  width: 1618px;
  margin: 0 auto;
  .top {
    display: flex;
    justify-content: space-between;
    .lunbo {
      box-sizing: border-box;
      width: 1157px;
      height: 411px;
      border: 1px solid #e8f2ff;
      border-radius: 10px;
      box-shadow: 0 0 10px 0 rgb(0 0 0 / 10%);
      img {
        width: 100%;
        height: 411px;
        border-radius: 10px;
      }
    }
    .right {
      box-sizing: border-box;
      flex-basis: 431px;
      padding: 18px;
      background: linear-gradient(0deg, #ffffff 0%, #e8f2ff 100%);
      border: 1px solid #e8f2ff;
      border-radius: 10px;
      box-shadow: 0 0 10px 0 rgb(0 0 0 / 10%);
      .title {
        margin-bottom: 14px;
        font-size: 18px;
        font-weight: 700;
        color: #2b67b0;
      }
      img {
        width: 100%;
        height: 256px;
        border-radius: 10px;
      }
      .title1 {
        color: #1981ff;
      }
      .info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .time {
          font-size: 14px;
          color: #3963a6;
        }
        .btn {
          width: 88px;
          height: 32px;
          font-weight: 700;
          line-height: 32px;
          color: #ffffff;
          text-align: center;
          background-color: #1881ff;
          border-radius: 16px;
        }
      }
    }
  }
  .list {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 399px;
    padding: 28px;
    margin-top: 50px;
    background: url("@/assets/images/bg1.png");
    border: 1px solid #e8f2ff;
    border-radius: 60px 10px 10px;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 10%);
    .type {
      display: flex;
      flex-grow: 1;
      flex-direction: column;
      align-items: center;
      .title {
        margin-top: 68px;
        margin-bottom: 143px;
        font-size: 30px;
        font-weight: 700;
        color: #103b6e;
      }
      .btn {
        width: 146px;
        height: 42px;
        font-weight: 700;
        line-height: 42px;
        color: #1881ff;
        text-align: center;
        cursor: pointer;
        background-color: #ffffff;
        border-radius: 21px;
      }
    }
    .list-item {
      box-sizing: border-box;
      width: 356px;
      height: 340px;
      padding: 10px;
      margin-right: 60px;
      cursor: pointer;
      background-color: #ffffff;
      border-radius: 10px;
      &:hover {
        box-shadow: 0 0 16px 8px rgb(153 191 255 / 100%);
      }
      .activity-illustration {
        position: relative;
        width: 336px;
        height: 180px;
        margin-bottom: 10px;
        overflow: hidden;
        border-radius: 20px;
        img {
          width: 100%;
          height: 100%;
        }
        span {
          position: absolute;
          top: 0;
          left: 0;
          display: block;
          width: 80px;
          height: 36px;
          line-height: 36px;
          color: white;
          text-align: center;
          background-color: #486570;
          border-radius: 0 0 20px;
        }
      }
      .title {
        margin-bottom: 14px;
        font-size: 18px;
        font-weight: 700;
        color: #2b67b0;
      }
      .info {
        display: -webkit-box;
        margin-bottom: 17px;
        overflow: hidden;
        font-size: 14px;
        color: #3963a6;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      .bm {
        display: flex;
        justify-content: space-between;
        .btn {
          width: 88px;
          height: 32px;
          font-weight: 700;
          line-height: 32px;
          color: #ffffff;
          text-align: center;
          background-color: #1881ff;
          border-radius: 16px;
        }
      }
    }
  }
  .bg2 {
    background: url("@/assets/images/bg2.png");
  }
  .bg3 {
    background: url("@/assets/images/bg3.png");
  }
  .bg4 {
    background: url("@/assets/images/bg4.png");
  }
  .type2 {
    flex-direction: row-reverse;
    border-radius: 10px 60px 10px 10px;
  }
}
</style>
